package com.neuedu.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.neuedu.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author wgq
 * @since 2020-09-18
 */
public interface IUserService extends IService<User> {
    String token(User user) throws JsonProcessingException;


    Object list(User umsUser);
    boolean add(User umsUser);
    boolean batchDel(Integer[] ids);

    boolean logout(HttpServletRequest request);

    User currentUser(HttpServletRequest request);

    boolean changePassword(String username, String securityCode, String password);
}
